﻿@using Microsoft.AspNetCore.Mvc.TagHelpers
@model Personalblog.Model.ViewModels.PostViewModel
<header class="post-header py-3 mb-3">
    <div class="post-title h3 font-weight-bold">@Model.Title</div>
    <div class="border-bottom my-3"></div>
    <div class="post-meta">
        <div class="d-flex justify-content-between">
            <div>
                发布：
                <span>@Model.CreationTime.ToShortDateString()</span>
                <span>@Model.CreationTime.ToString("hh:mm")</span>
            </div>
            <div>
                更新：
                @Model.LastUpdateTime.ToShortDateString()
                @Model.LastUpdateTime.ToString("hh:mm")
            </div>
        </div>
        <div class="d-flex justify-content-between align-items-center">
            <div class="d-flex align-items-center">
                阅读：
                @Model.ViewCount
                <i class="bi bi-person-plus ms-1"></i>
            </div>
            <div>字数：@Model.Content.Length.ToString()</div>
        </div>
        <div class="d-flex justify-content-between">
            <nav aria-label="breadcrumb">
                <ol class="breadcrumb">
                    <li class="breadcrumb-item active">博客</li>
                    <li class="breadcrumb-item">
                        <a asp-controller="Blog" asp-action="List"
                           asp-route-categoryId="@Model.Category.Id">
                            @Model.Category.Name
                        </a>
                    </li>
                </ol>
            </nav>
        </div>
    </div>
</header>